#undef UNICODE
#include <windows.h>
#include <windowsx.h>
#include <time.h>
#include <exception>
#include "ShapesWindow.hpp"

#include "Win32dow.hpp"

int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow )
{
	srand( (unsigned int)time( NULL ) );
	int status= 0;

	try
	{
		ShapesWindow window( hInstance );
		status= window.Run();
	}
	catch (std::exception &e)
	{
		MessageBox( NULL, e.what(), "Error", MB_ICONERROR | MB_OK );
	}

	return status;
}
